#include <iostream>
#include <clocale>
using namespace std;
int main()
{
int x;
    do
    {
        cout<<"x=";
        cin>>x;
    }
    while (x<100 || x>999);
    int a,b,c;
    a=x%10;
    x/=10;
    b=x%10;
    x/=10;
    c=x%10;
    cout<<" x="<<b*100+c*10+a;
    return 0;
}
